﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterAdmin.master" CodeFile="ModeloForm.aspx.cs" Inherits="AreaRestrita_ModeloForm" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphTitulo" runat="server">

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPagina" runat="server">
    <asp:ScriptManager ID="sm1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="upAutomovel" Visible="true" runat="server">
        <ContentTemplate> 
        <div id="stylized" class="myform">
           <h1>Modelo</h1>
           <p>Cadastro de modelos</p>
           
           <label>Marca<span class="small"> Marca</span></label>
            <asp:DropDownList ID="ddlMarca" AutoPostBack="true" runat="server" CssClass="input" ></asp:DropDownList> 
             <asp:CustomValidator ID="cvMarca" Text="*" ForeColor="Red" ValidationGroup="Salvar" ControlToValidate="ddlMarca" runat="server" onservervalidate="cvMarca_ServerValidate"></asp:CustomValidator>       
            <label>Modelo<span class="small"> Modelo</span></label>       
              <asp:TextBox ID="txtModelo" runat="Server" CssClass="input" ></asp:TextBox>  
                 <asp:RequiredFieldValidator ID="rfvModelo" Text="*" ForeColor="Red" ValidationGroup="Salvar" ControlToValidate="txtModelo" runat="server"></asp:RequiredFieldValidator>       
              <asp:Button Text="Salvar" ID="btnSalvar" runat="server" 
                ValidationGroup="Salvar"  CssClass="button" onclick="btnSalvar_Click" /> 
            </div>          
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:HiddenField ID="hdfID" runat="server" />
</asp:Content>

